# wx5f2850581e4e064d e7c80cfeecb65ce6fcf9af3c5cae1824 
'''
info = {
  "appid":"wx5f2850581e4e064d",
  "appsecret":"e7c80cfeecb65ce6fcf9af3c5cae1824"
}


innerUrl = {
  'community':"http://gzh.zjnnhj.com/niuneng/community.html",
  'driver':"http://gzh.zjnnhj.com/niuneng/driver.html",
  'init':"http://gzh.zjnnhj.com/niuneng/init.html",
  "appid":"wx5f2850581e4e064d"
}

# 菜单数据
menu = {
    "button": [
        {
            "type": "view", 
            "name": "社区管理员", 
            "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid={appid}&redirect_uri={init}&response_type=code&scope=snsapi_base&state=123&connect_redirect=1#wechat_redirect".format(**innerUrl)
        }, 
        {
           "type": "view", 
            "name": "运输员", 
            "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid={appid}&redirect_uri={init}&response_type=code&scope=snsapi_base&state=123&connect_redirect=1#wechat_redirect".format(**innerUrl)
        }
    ]
}'''

# wx5f2850581e4e064d e7c80cfeecb65ce6fcf9af3c5cae1824 
info = {
  "appid":"wx5f2850581e4e064d",
  "appsecret":"e884ecc276812eae165127f1e7fd82bd"
}


innerUrl = {
  'scan':"http://gzh.zjnnhj.com/niuneng/scan.html",
  'scan2register':"http://gzh.zjnnhj.com/niuneng/scan2register.html",
  "appid":"wx5f2850581e4e064d",
  'orderdevice': "http://gzh.zjnnhj.com/niuneng/orderdevice.html",
  'checkhistory': "http://gzh.zjnnhj.com/niuneng/checkhistory.html",
  'connectDev': "http://gzh.zjnnhj.com/niuneng/toOperate.html",
}


'''{ 
    "name": "预约设置", 
    "sub_button":[
      {
        "type": "view",
        "name": "设备预约",
        "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid={appid}&redirect_uri={orderdevice}&response_type=code&scope=snsapi_base&state=123#wechat_redirect".format(**innerUrl)
      },
      {
        "type": "view",
        "name": "查询记录",
        "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid={appid}&redirect_uri={checkhistory}&response_type=code&scope=snsapi_base&state=123#wechat_redirect".format(**innerUrl)
      }
    ]
  }, '''

# 菜单数据
menu = {
    "button": [
        { 
            "name": "我的", 
            "sub_button":[
              {
                "type": "view",
                "name": "扫码注册",
                "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid={appid}&redirect_uri={scan2register}&response_type=code&scope=snsapi_base&state=123&connect_redirect=1#wechat_redirect".format(**innerUrl)
              },
              {
                "type": "view",
                "name": "连接设备",
                "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid={appid}&redirect_uri={connectDev}&response_type=code&scope=snsapi_base&state=123#wechat_redirect".format(**innerUrl)
              }
            ]
        }, 
        {
           "type": "view", 
            "name": "了解我们", 
            "url": "http://www.zjnnhj.com"
        }
    ]
}



